// 导入请求对象
import request from '@/utils/request.js';
// 封装一个获取用户频道的接口
export const channels = () => {
    return request({
        url: '/v1_0/user/channels'
    })
}
// 封装一个获取所有频道的接口
export const channelAll = () => {
    return request({
        url: '/v1_0/channels'
    })
}
// 封装一个添加频道的接口
export const addChannel = (data) => {
    return request({
        url: '/v1_0/user/channels',
        method: 'patch',
        data
    })
}
// 封装一个添加频道的接口
export const deleteChannel = (id) => {
    return request({
        url: '/v1_0/user/channels/' + id,
        method: 'delete'
    })
}